package com.edu.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.user.entity.Module;
import com.edu.user.entity.TreeNodeVO;
import com.edu.vo.Result;

import java.util.List;

public interface IModuleService extends IService<Module> {



    /**
     * 根据账户有层级的查询所有菜单   Hierarchy--分层次的
     * @param account 账户名
     * @return  返回当前账户的所有层级菜单
     * @throws Exception
     */
    List<Module> queryModuleListHierarchyByAccount(String account )throws Exception;

    List<TreeNodeVO> queryTreeNodeListHierarchy();

    List<TreeNodeVO> queryThirdTreeNodeListByRoleId(String roleId);

    Result grant(String roleId, List<String>  moduleIds);
}
